import request from '@/utils/request-student'


/**
 * 机器故障申请
 * @param {Number} studentPaperId 学生试卷ID
 * @returns {Promise}
 */
export function reportMachineFault(studentPaperId) {
  return request({
    url: '/student/change-machine/report-fault',
    method: 'post',
    data: {
      studentPaperId
    }
  })
}

/**
 * 获取机器故障批准状态
 * @param {Number} studentPaperId 学生试卷ID
 * @returns {Promise}
 */
export function getApprovalStatus(studentPaperId) {
  return request({
    url: `/student/change-machine/approval-status/${studentPaperId}`,
    method: 'get'
  })
} 